import request from '@/utils/request'

// 查询AGV任务列表
export function listMission(query) {
  return request({
    url: '/api/agvMission/page/transfer',
    method: 'get',
    params: query
  })
}

// 查询AGV任务详细
export function getMission(id) {
  return request({
    url: '/api/agvMission/' + id,
    method: 'get'
  })
}

// 新增AGV任务
export function addMission(data) {
  return request({
    url: '/api/agvMission/add',
    method: 'post',
    data: data
  })
}

// 修改AGV任务
export function updateMission(data) {
  return request({
    url: '/api/agvMission/update',
    method: 'post',
    data: data
  })
}

// 删除AGV任务
export function delMission(id) {
  return request({
    url: '/api/agvMission/delete/' + id,
    method: 'post'
  })
}
